package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("litemall_scheduled_job")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LitemallScheduledJob {
    @TableId
    private Integer id;

    private String name;
    private String className;
    private String cron;
    private Integer type;
    private Boolean status;
    private Boolean isDie;
    @TableField("`desc`")
    private String desc;
    private String operateUser;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 删除
     */
    @TableLogic
    private Boolean deleted;

}
